package com.tentact.service;

import com.tentact.dao.Chf_MeetingDao;
import com.tentact.vo.Meeting;

import java.util.List;

public class Chf_MeetingService {
    Chf_MeetingDao c_md=new Chf_MeetingDao();
    //添加Meeting表数据
    public int addMeeting(String meeting_name,int h_number,String startTime,String endTime,int roomid,String description, int reservationistid){
        return  c_md.addMeeting(meeting_name,h_number,startTime,endTime,roomid,description,reservationistid);
    }
    //获取单个int型ID
    public  int meetingID(String meetingName){
        return  c_md.meetingID(meetingName);

    }
    //添加meetingparticipants表数据
    public int addMeetingParticipant(int MeetingId,int ParticipantId){
        return  c_md.addMeetingParticipant(MeetingId,ParticipantId);
    }
    //判断会议名是否存在
    public  boolean judgeName(String meeting_name){
        return c_md.judgeName(meeting_name);
    }

}
